package util;

/**
 * 自定义常量类作为返回值与参数，枚举不可作为参数返回值，与枚举区分开
 * @version 1.0
 * @Author: xxf
 * @CreateDate: 2020/9/27 20:39
 */
public class Constants {

    public static final String FORWARD = "forward:";
    public static final String REDIRECT = "redirect:";
    public static final String INDEX = "index:";
    public static final String CHECKCODE = "CHECKCODE_SERVER";


    public static final String USER_ACTIVE = "1";//已激活
    public static final String USER_NOT_ACTIVE = "0";//未激活

    public static final int ROLE_CUSTOMER = 0;
    public static final int ROLE_ADMIN = 1;

    public static final int ACTIVE_FAIL = 0;//激活失败
    public static final int ACTIVE_SUCCESS = 1;//激活成功
    public static final int ACTIVE_ALREADY = 2;//已经激活过了

    /**
     * 自动登录cookie名
     */
    public static final String AUTO_NAME = "autoUser";
}
